package com.lite.business.service.middletab;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lite.business.entity.commodities.ContractCommodity;
import com.lite.business.entity.middletab.MiddleTab;
import com.lite.business.exception.BusinessException;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author stranger
 * @since 2022-10-25
 */
public interface MiddleTabService extends IService<MiddleTab> {

    Boolean addContractCommodity(MiddleTab middleTab) throws BusinessException;

    Boolean removeContractCommodity(Integer middleTabId) throws BusinessException;

    List<ContractCommodity> listContractCommodity(Integer page, Integer size, Integer contractId) throws BusinessException;

}
